package com.itheima.utils;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data //自动生成getter和setter方法
@Component//将当前类交给Spring管理
@ConfigurationProperties(prefix = "aliyun.oss")//指定配置文件中的前缀
public class AliyunOSSProperties {
    private String endpoint;
    private String bucketName;
    private String region;
}
